recreateClaims

fun <JWT> SdJwt<JWT>.recreateClaims(claimsOf: (JWT) -> JsonObject): JsonObject(source)

Deprecated

Replace with SdJwtSerializationOps

Replace with

with(SdJwtRecreateClaimsOps(claimsOf)) { recreateClaims(visitor = null) }

Recreates the claims, used to produce the SD-JWT That are:

Receiver

the SD-JWT to use

Return

the claims that were used to produce the SD-JWT

Parameters

claimsOf

a function to get the claims of the SdJwt.jwt

JWT

the type representing the JWT part of the SD-JWT


fun <JWT> SdJwt<JWT>.recreateClaims(visitor: ClaimVisitor? = null, claimsOf: (JWT) -> JsonObject): JsonObject(source)

Deprecated

Replace with SdJwtSerializationOps

Replace with

 with(SdJwtRecreateClaimsOps(claimsOf)) { recreateClaims(visitor) }

Recreates the claims, used to produce the SD-JWT That are:

Receiver

the SD-JWT to use

Return

the claims that were used to produce the SD-JWT

Parameters

visitor

ClaimVisitor to invoke whenever a selectively disclosed claim is encountered

claimsOf

a function to get the claims of the SdJwt.jwt

JWT

the type representing the JWT part of the SD-JWT